<?php global $CFG;
$url_template=$CFG->config['base_url']."template/admin2";
$this->load->library('session');
if(!$this->session->userdata('admin')){
	$this->session->unset_userdata('admin');
	$this->load->helper('url');
	redirect($CFG->config['base_url'].'admin');
}

?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Caverne</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="<?php echo $url_template?>/css/main.css" rel="stylesheet">
 <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
 <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>

<script type="text/javascript" src="<?php echo $url_template?>/js/main.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>

<div class="navbar navbar-inverse nav">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand" href="<?php echo $CFG->config['base_url']?>">Caverne.fr</a>
			
          	<div class="nav-collapse collapse">
              <ul class="nav">
                  <li class="divider-vertical"></li>
                  <li><a href="<?php echo $CFG->config['base_url']?>admin"><i class="icon-home icon-white"></i> Accueil</a></li>
              </ul>
              <div class="pull-right">
                <ul class="nav pull-right">
                    <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Bienvenu, Admin <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo $CFG->config['base_url']?>setting/admin"><i class="icon-cog"></i> Réglages</a></li>
                            <li><a href="<?php echo $CFG->config['base_url']?>/contact"><i class="icon-envelope"></i> Support</a></li>
                            <li class="divider"></li>
                            <li><a href="/admin/logout"><i class="icon-off"></i> Se déconnecter</a></li>
                        </ul>
                    </li>
                </ul>
              </div>
            </div>
        </div>
    </div>
</div>

<div class="container-fluid">
 <div class="row-fluid">
   <div class="span1">
    <!--Sidebar content-->
    	<?php echo $admin_menu;?>
   </div>
   <div class="span11">
    <!--Body content-->
